<template>
  <div id="Welcome">
    <el-container>
      <el-header>
        <nav-bar/>
      </el-header>
      <el-main>
        <el-carousel indicator-position="inside">
          <el-carousel-item v-for="item in images" :key="item">
            <el-image
                style="height: 600px"
                :src="item"
                fit="fill"></el-image>
          </el-carousel-item>
        </el-carousel>
        <el-row>
          <el-col >
            <h1>UMS——基于 SSM + Vue 构建的轻量级、前后端分离项目</h1>
          </el-col>
        </el-row>
      </el-main>
    </el-container>
  </div>
</template>

<script>

import animal1 from "../assets/images/animals/animal1.jpeg";
import animal2 from "../assets/images/animals/animal2.jpeg";
import animal3 from "../assets/images/animals/animal3.jpeg";
import animal4 from "../assets/images/animals/animal4.jpeg";
import animal5 from "../assets/images/animals/animal5.jpeg";
import animal6 from "../assets/images/animals/animal6.jpeg";


import NavBar from "@/components/NavBar";

export default {
  name: 'Welcome',
  components: {
    NavBar
  },
  data() {
    return {
      tableData: [
        {date: '2016-05-02', name: '王小虎', address: '上海市普陀区金沙江路 1518 弄'},
        {date: '2016-05-04', name: '王小虎', address: '上海市普陀区金沙江路 1517 弄'},
        {date: '2016-05-01', name: '王小虎', address: '上海市普陀区金沙江路 1519 弄'},
        {date: '2016-05-03', name: '王小虎', address: '上海市普陀区金沙江路 1516 弄'}
      ],
      images: [
          animal1,animal2,animal3,animal4,animal5,animal6
      ]
    }
  }
}
</script>

<style scoped>
body{
  margin: 0;
  padding: 0;
}
.el-header, .el-footer {
  background-color: #545c64;
  color: #333;
  text-align: center;
  line-height: 60px;
}
.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
  line-height: 160px;
}


</style>